﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>{$config.sitename}</title>

    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta charset="utf-8">

    <link rel="stylesheet" href="/templatesstore/css/idangerous.swiper.css">
    <link href="/templatesstore/css/iscroll.css" rel="stylesheet" type="text/css" />
    <link href="/templatesstore/css/cate74_.css" rel="stylesheet" type="text/css" />
    <link href="/templatesstore/css/cate74kz8.css" rel="stylesheet" />
   
    <style>
  
</style>

    <script src="/templatesstore/js/iscroll.js" type="text/javascript"></script>
    <script type="text/javascript">
        var myScroll;

        function loaded() {
            myScroll = new iScroll('wrapper', {
                snap: true,
                momentum: false,
                hScrollbar: false,
                onScrollEnd: function () {
                    document.querySelector('#indicator > li.active').className = '';
                    document.querySelector('#indicator > li:nth-child(' + (this.currPageX + 1) + ')').className = 'active';
                }
            });


        }

        document.addEventListener('DOMContentLoaded', loaded, false);
    </script>

</head>

<body id="cate74">
    <div id="insert1" style="z-index: 10000; position: fixed; top: 20px;"></div>
    
    <style>
        .btn_music {
            display: inline-block;
            width: 35px;
            height: 35px;
            background: url('/templatesstore/images/play.png') no-repeat center center;
            background-size: 100% auto;
            position: absolute;
            z-index: 100;
            left: 15px;
            top: 20px;
        }

            .btn_music.on {
                background-image: url("/templatesstore/images/stop.png");
            }
    </style>
    <script src="/templatesstore/js/audio.js" type="text/javascript"></script>


    <span id="playbox" class="btn_music on" onclick="playbox.init(this).play();"><audio autoplay="autoplay" src="{$config.bgmusic}" loop id="audio"></audio> </span>
    <div class="banner">
        <div id="wrapper">
            <div id="scroller">
                <ul id="thelist">
                    <vt:function var="hdp" method="getHdp" type="$this" rows="6" />
                    <vt:foreach from="$hdp" item="p" index="i">
                         
                   <li style="background-image:url('{$p.img_url}');background-attachment: inherit;background-repeat:no-repeat;background-size:cover;-moz-background-size:cover;-webkit-background-size:cover; background-position: center center " ></li>

                   </vt:foreach>
                </ul>
            </div>
        </div>
        <div id="nav">
            <div id="prev" onclick="myScroll.scrollToPage('prev', 0,400,{$hdp.Count});return false">&larr; prev</div>
            <ul id="indicator">

                <vt:foreach from="$hdp" item="p" index="i">
                        <vt:if var="#.i.isfirst" value="true">
                            <li class="active">1</li>
                            <vt:else>
                                   <li>{$i}</li>
                           </vt:if>
                  </vt:foreach>

            </ul>
            <div id="next" onclick="myScroll.scrollToPage('next', 0);return false">next &rarr;</div>
        </div>
        <div class="clr"></div>
    </div>


    <div class="device">
        <a class="arrow-left" href="#"></a>
        <a class="arrow-right" href="#"></a>
        <div class="swiper-container">
            <div class="swiper-wrapper">

         <!--分类信息 -->
                <vt:function var="category" method="getCategory" type="$this" classlayer="1"/>
                <vt:foreach from="$category" item="#.data" index="i" groupsize="4">

                  <div class="swiper-slide">
                    <div class="content-slide">
                        <vt:foreach from="$#.data" item="#.item" index="#.j">
                            <vt:if var="item.link_url" value="" compare="==">
                     <a href="{$item.id call='GetNewsUrl'}">
                    <vt:else>
                     <a href="{$item.link_url}">
                     </vt:if>
                            
                   <div class="mbg">
                                  <p class="ico"><img src="{$item.ico_url}" /></p>
                    <p class="title">{$item.title}</p>

                   </div>
                               
                        </a>


                        </vt:foreach>
                    </div>
                </div>
               </vt:foreach>

                  <!--分类信息 end -->

            </div>
            <div class="pagination"></div>

        </div>






            <script src="/scripts/jquery/jquery-1.10.1.min.js" type="text/javascript"></script>
       <script src="/templatesstore/js/idangerous.swiper-2.1.min.js" type="text/javascript"></script>   <script>
            var mySwiper = new Swiper('.swiper-container', {
                pagination: '.pagination',
                loop: true,
                grabCursor: true,
                paginationClickable: true
            })
            $('.arrow-left').on('click', function (e) {
                e.preventDefault()
                mySwiper.swipePrev()
            })
            $('.arrow-right').on('click', function (e) {
                e.preventDefault()
                mySwiper.swipeNext()
            })
        </script>


        <script>
            var count = document.getElementById("thelist").getElementsByTagName("li").length;

            var count2 = document.getElementsByClassName("menuimg").length;
            for (i = 0; i < count; i++) {
                document.getElementById("thelist").getElementsByTagName("li").item(i).style.width = document.documentElement.clientWidth + "px";
                document.getElementById("thelist").getElementsByTagName("li").item(i).style.height = document.documentElement.clientHeight + "px";
                //document.getElementById("thelist").getElementsByTagName("img").item(i).style.width = document.documentElement.clientWidth+"px";
                //document.getElementById("thelist").getElementsByTagName("img").item(i).style.height = document.documentElement.clientHeight+"px";
            }
            document.getElementById("scroller").style.cssText = " width:" + document.documentElement.clientWidth * count + "px";

            setInterval(function () {
                myScroll.scrollToPage('next', 0, 400, count);
            }, 3500);
            window.onresize = function () {
                for (i = 0; i < count; i++) {
                    document.getElementById("thelist").getElementsByTagName("li").item(i).style.width = document.documentElement.clientWidth + "px";
                    document.getElementById("thelist").getElementsByTagName("li").item(i).style.height = document.documentElement.clientHeight + "px";
                    //document.getElementById("thelist").getElementsByTagName("img").item(i).style.width = document.documentElement.clientWidth+"px";
                    //document.getElementById("thelist").getElementsByTagName("img").item(i).style.height = document.documentElement.clientHeight+"px";
                }
                document.getElementById("scroller").style.cssText = " width:" + document.documentElement.clientWidth * count + "px";
            }


        </script>

    </div>

 <div class="copyright">{$config.wcopyright}</div><!--_share_js-->
        <vt:template id="share_js" file="../../csmall/_share_js_index.html" charset="utf-8" />
<!--/_share_js-->
<!--_bottommenu-->
    <vt:template id="bottommenu" file="../../bmenu/bottom.html" charset="utf-8" />
<!--/_bottommenu-->	
</body>
</html>
